home *** CD-ROM | disk | FTP | other *** search
- property n1, n2, n3, n4, n5, n6, loading
-
- on beginSprite me
- loading = [0, 0, 0, 0, 0, 0]
- n1 = preloadNetThing(the moviePath & "chapter.txt")
- n2 = preloadNetThing(the moviePath & "quiz.txt")
- n3 = preloadNetThing(the moviePath & "config.txt")
- n4 = preloadNetThing(the moviePath & "main.png")
- n5 = preloadNetThing(the moviePath & "quiz.png")
- n6 = preloadNetThing(the moviePath & "video.png")
- end
-
- on exitFrame me
- if netDone(n1) then
- loading[1] = 1
- end if
- if netDone(n2) then
- loading[2] = 1
- end if
- if netDone(n3) then
- loading[3] = 1
- end if
- if netDone(n4) then
- loading[4] = 1
- end if
- if netDone(n5) then
- loading[5] = 1
- end if
- if netDone(n6) then
- loading[6] = 1
- end if
- tmp = 0
- repeat with i = 1 to 6
- tmp = tmp + loading[i]
- end repeat
- sprite(14).width = tmp * 124 / 6
- if netDone(n1) and netDone(n2) and netDone(n3) and netDone(n4) and netDone(n5) and netDone(n6) then
- importFileInto(member(1, "external files"), the moviePath & "chapter.txt")
- importFileInto(member(2, "external files"), the moviePath & "quiz.txt")
- importFileInto(member(3, "external files"), the moviePath & "config.txt")
- importFileInto(member(7, "internal"), the moviePath & "main.png")
- importFileInto(member(8, "internal"), the moviePath & "video.png")
- importFileInto(member(9, "internal"), the moviePath & "quiz.png")
- go(the frame + 1)
- else
- go(the frame)
- end if
- end
-